package ch09;

class Single{
	private static Single single = new Single();
	
	private Single(){}
	
	public static Single getInstance(){
		return single;
	}
}

public class SingleTest {
	public static void main(String[] args){
		//Single single = new Single();
		Single single = Single.getInstance();
		Single single2 = Single.getInstance();
		System.out.println(single);
		System.out.println(single2);
	}	
}
